package com.general.box.knowledge

import android.content.Context
import android.content.Intent

object JumpKnowledge {

    fun toFlower(context: Context) {
        context.startActivity(Intent(context, KnowledgeMainActivity::class.java).apply {
            putExtra(KnowledgeMainActivity.TYPE, KnowledgeMainActivity.TYPE_FLOWER)
        })
    }

    fun toTeam(context: Context) {
        context.startActivity(Intent(context, KnowledgeMainActivity::class.java).apply {
            putExtra(KnowledgeMainActivity.TYPE, KnowledgeMainActivity.TYPE_TEAM)
        })
    }

    fun toBook(context: Context) {
        context.startActivity(Intent(context, KnowledgeMainActivity::class.java).apply {
            putExtra(KnowledgeMainActivity.TYPE, KnowledgeMainActivity.TYPE_BOOK)
        })
    }
}